<template>
  <div class="audit-content">
    <div class="detail-content">
      <Row>
        <Col span="2"  class="left-title">手机号:</Col>
        <Col span="20">{{PendingAuditDetail.mobile}} <i class="icon icon-authed" v-if="PendingAuditDetail.userType==1"></i></Col>
      </Row>
      <Row>
        <Col span="2"  class="left-title">发布时间:</Col>
        <Col span="20">{{PendingAuditDetail.createTime}}</Col>
      </Row>
      <Row>
        <Col span="2"  class="left-title">位置:</Col>
        <Col span="20">{{PendingAuditDetail.location}}</Col>
      </Row>
      <Row style="margin-bottom: 16px;">
        <Col span="2"  class="left-title content-name">内容:</Col>
        <Col span="20" class="content-describe">
        <pre class="contentmes"><span class="subjectname" @click.stop="goToSubject(PendingAuditDetail)" v-if="PendingAuditDetail.subjectName">{{PendingAuditDetail.subjectName}}</span>{{PendingAuditDetail.content}}</pre>
        </Col>
      </Row>
      <Row>
        <Col span="2"  class="left-title content-name">&nbsp;</Col>
        <Col span="22" class="content-describe">
        <div class="img-pane">
          <div class="img-box" v-for="(img,index) in PendingAuditDetail.photos">
              <img :src="img.fileUrl"  alt="" :key="index" @click="bigImg(index)">
          </div>
        </div>
        </Col>
      </Row>
    </div>
    <div class="audit-config clearfix">
      <Row>
        <Col span="2" class="otherCol2">审核结果:</Col>
        <Col span="20">
        <Radio-group v-model="auditStatusName">
          <Radio label="未通过审核"></Radio>
          <Radio label="审核通过"></Radio>
        </Radio-group>
        </Col>
      </Row>
      <Row v-if="isAudit==2">
        <Col span="2" class="otherCol2" >退回原因:</Col>
        <Col span="20">
          <div class="reason-list">
            <div class="reason-wrapper" @click="select(item)" v-for="item in rejectReasonList" v-if="item.dictValue!='其他'">
              <span class="box" :class="{'checked':item.checked}"></span><span
              class="reason">{{item.dictValue}}</span>
            </div>
            <p class="otherReason"  v-for="item in rejectReasonList" v-if="item.dictValue=='其他'">
              <span @click="select(item)" class="box" :class="{'checked':item.checked}"></span><span @click="select(item)">其他</span><input class="reasonInput" placeholder="请填写违规原因" maxlength="50"
                                            v-model="otherReason"/></p>
          </div>
        </Col>
      </Row>
      <Row v-if="isAudit==3" class="margin-bottom-21">
        <Col span="2"  style="line-height: 40px;" class="otherCol2">处理方式:</Col>
        <Col span="20">
        <Select v-model="report.dealType" style="width:500px">
          <Option  v-for="item in dealTypeList" :value="item.dictCode" :key="item">{{ item.dictValue }}</Option>
        </Select>
        </Col>
      </Row>
	  <!--
      <Row v-if="isAudit==3">
        <Col span="2"  style="line-height: 40px;" class="otherCol2">奖励积分:</Col>
        <Col span="20">
        <Select v-model="report.integralMatters" style="width:500px;">
          <Option v-for="item in integralMattersList" :value="item.dictCode" :key="item">{{ item.dictValue }}</Option>
        </Select>
        </Col>
      </Row>
	  -->
      <div style="float: right;margin-bottom:10px;">
        <Row>
          <Col span="24">
          <Button type="primary" class="button" @click="goAuditList"><i class="icon icon-arrow-left"></i>返回列表</Button>
          <Button type="primary" class="button" @click="viewNotifyInfo">确定，下一个<i class="icon icon-arrow-right"></i></Button>
          </Col>
        </Row>

      </div>
    </div>
    <!--返回通知预览-->
    <Modal class="ssp-modal"
           v-model="viewNotify"
           title="发送消息"
           width="500"
    >
      <textarea class="view-notify-content" v-model="report.msgContent"></textarea>
      <div slot="footer">
        <i-button type="" class="ivu-btn-primary" @click="queryPendingAuditDetailByNext">确定</i-button>
      </div>
    </Modal>
    <!--放大-->
    <big-img v-model=imgSwitch  :img-index=imgIndex :photo-list=PendingAuditDetail.photos
    @reset="reset"></big-img>
    <!--提示框-->
    <Modal class="warning-modal"
           v-model="showWarnModal"
           title="温馨提示"
           width="550"
           height="250"
    >
      <div class="warn-modal-body">
        <i class="modal-icon"></i>
        <p class="modal-content">{{warnContent}}</p>
      </div>
      <div slot="footer">
        <div class="warn-modal-footer">
        <span class="modal-close-btn" @click="closeModal">确定</span></div>
      </div>
    </Modal>
  </div>
</template>
<script>
  import index from  "./audit-content.js"
  export default index ;
</script>
<style >
  .audit-content{
    width:100%;
    padding:30px;
    font-size: 14px;
    color: #777E8C;
    letter-spacing: 0;
    line-height: 22px;
  }
  .audit-content-detail{
    padding:20px;
    border:1px solid #DDDEE3;
  }
  .audit-content-detail p:before{
    display: block;

  }
  .reason-list {
    width: 800px;
    height: 100%;
  }

  .reason-list .reason-wrapper {
    display: inline-block;
    width: 210px;
    line-height: 38px;
    position: relative;
    margin-right: 15px;
    cursor: pointer;
    overflow: hidden;
  }
  .box {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 1px solid #D5D5D5;
    border-radius: 2px;
    margin-right: 4px;
  }

  .checked {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("../img/small-icons.png");
    background-position: -280px -1px;
    margin-right: 4px;
  }

  .reason-list .reason-wrapper .reason {
    font-size: 14px;
    color: #424754;
    text-align: left;
    display: inline-block;
    position: absolute;
    line-height: 110%;
    margin-top: 8px;
  }
  .otherReason{
    cursor: pointer;
  }
  .reason-list .otherReason{
    font-size: 14px;
    color: #424754;
  }
  .reason-list .otherReason .reasonInput{
    margin-left: 10px;
    padding-left: 10px;
    border: 1px solid #D5D5D5;
    border-radius: 2px;
    width: 500px;
    height: 40px;
  }
  .button .icon-arrow-left{margin-right: 15px;}
  .button .icon-arrow-right{margin-left: 15px;}
  .subjectname{
    margin-right: 10px;
    color: #3F94FC;
    cursor: pointer;
  }


</style>
